package com.uplift.mgt.customer.service;

import java.util.List;
import java.util.Map;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mgt.customer.model.Customer;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartHttpServletRequest;

public interface ICustomerService {
	public List<Map<String, Object>> queryCustomer(Customer customer);
	public List<Map<String, Object>> queryAllCustomer(Customer customer);

	@Transactional
	public ServiceReslut addCustomer(Customer customer);

	@Transactional
	public ServiceReslut updateCustomer(Customer customer);

	@Transactional
	public ServiceReslut deleteCustomer(Customer customer);

	/**
	 * 导入用户
	 * @param request
	 * @return
	 */
	public void importUser(MultipartHttpServletRequest request);

	Map<String, Object> queryCustomerByCode(String userCode);

	Map<String, Object> queryCustomerByName(String userName);
}
